<?php
/**
 * Created by PhpStorm.
 * User: 86158
 * Date: 2021/7/10
 * Time: 0:51
 */

namespace App\Models\exams;


use App\Models\exams\observe\QuestionObserve;
use App\Models\Model;

class Question extends Model
{

    protected $fillable = [
        'title',
        'cate',
        'question_date',
        'user_name',
        'user_id',
        'A',
        'B',
        'C',
        'D',
        'E',
        'F',
        'score',
        'analysisi',
        'answer'
    ];

    public static function boot()
    {
        parent::boot();
        static::observe(new QuestionObserve());

    }

//    public function getAnswerAttribute($value)
//    {
//        return explode(',',$value);
//    }
}